﻿import request from '@/utils/request';
// list
export const dianyingList = (params) => {
    return request({
        url: '/dianying/page',
        method: 'post',
        data: params,
    })
};
export const dianyingDetail = (id) => {
    return request({
        url: '/dianying/'+id,
        method: 'get',
    })
};
// add
export const dianyingSave = (params) => {
    return request({
        url: '/dianying',
        method: 'post',
        data: params,
    })
};
// updt
export const dianyingEdit = (params) => {
    return request({
        url: '/dianying',
        method: 'put',
        data: params,
    })
};
// delete
export const dianyingDelete = (id) => {
    return request({
        url: '/dianying/'+id,
        method: 'delete',
    })
};
// pldel
export const dianyingDeleteList = (dianyings) => {
    return request({
        url: '/dianying/deleteList',
        data:{list:dianyings},
        method: 'post',
    })
};
// all
export const dianyingAllList = () => {
    return request({
        url: '/dianying',
        method: 'get',
    })
};

